#include<stdio.h>

//题目：输入三个整数 x、y、z，请把这三个数由小到大输出。
int main()
{
    int x = 0,y = 0,z = 0;
    int t = 0;

    printf("输入三个整数：");
    scanf("%d %d %d",&x,&y,&z);

    if(x > y){
        //x与y交换
        t = x,x = y,y = t;
    }

    //x,z
    if(x > z){
        t = x,x = z,z = t;
    }

    //y,z
    if(y > z){
        t = y,y = z,z = t;
    }

    printf("从小到大排序：%d<%d<%d\n",x,y,z);


    return 0;
}